package org.snail.chat.service.manager;

import lombok.extern.log4j.Log4j;
import org.snail.chat.service.push.ChainToChatPushService;
import org.snail.other.bean.GroupDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 管理群组队列消息
 */
@Component
@Log4j
public class ChainToChatManager {

    @Autowired
    private ChainToChatPushService chainToChatPushService;

    /**
     * 获取子级部门信息
     * @param groupDO
     */
    public void executeDeptQueue(GroupDO groupDO) {

        log.debug("`````````````````````同步Chat:" + groupDO);
        chainToChatPushService.push(groupDO);
    }
}
